package biolabs.query;

public enum Axis {

	SELF,
	CHILD,
	DESCENDANT,
	DESCENDANT_OR_SELF;

	public boolean selectsDescendants() {
		switch(this) {
		case DESCENDANT:
		case DESCENDANT_OR_SELF:
			return true;
		default:
			return false;
		}
	}

	public boolean selectsSelf() {
		switch(this) {
		case SELF:
		case DESCENDANT_OR_SELF:
			return true;
		default:
			return false;
		}
	}

}
